import { NestFactory } from '@nestjs/core';
import { AppModule } from '../../app.module';
import { TemplateSeedService } from './template.seed';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  const seedService = app.get(TemplateSeedService);
  await seedService.seed();
  await app.close();
}

bootstrap(); // 执行种子数据